package io.renren.modules.sys.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.sys.dao.DevelopmentHistoryDao;
import io.renren.entity.DevelopmentHistoryEntity;
import io.renren.modules.sys.service.DevelopmentHistoryService;


@Service("developmentHistoryService")
public class DevelopmentHistoryServiceImpl extends ServiceImpl<DevelopmentHistoryDao, DevelopmentHistoryEntity> implements DevelopmentHistoryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<DevelopmentHistoryEntity> page = this.selectPage(
                new Query<DevelopmentHistoryEntity>(params).getPage(),
                new EntityWrapper<DevelopmentHistoryEntity>()
                        .isNotNull("content").orderBy("sort")
        );

        return new PageUtils(page);
    }

}
